<?php

{$AUTO_GENERATOR_INCLUDE_HEADER_TEMPLATE}

defined('_JEXEC') or die;

if (!JFactory::getUser()->authorise('core.manage', 'com_{$AUTO_GENERATOR_COMPONENT|lower}')) {
    return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}

JLoader::register('{$AUTO_GENERATOR_COMPONENT|capitalize}Helper', __DIR__ . '/helpers/helper.php');

// Execute the task.
$controller = JControllerLegacy::getInstance('{$AUTO_GENERATOR_COMPONENT|capitalize}');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();
